//
//  CityCollectionViewCell.m
//  Qyer
//
//  Created by 赵宇 on 15/9/14.
//  Copyright (c) 2015年 赵宇. All rights reserved.
//

#import "CityCollectionViewCell.h"
#import "BaseHeader.h"
@implementation CityCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.photoView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH/7*3.1, SCREEN_WIDTH/7*4.4)];
        [self.contentView addSubview:self.photoView];
        
        UIImageView *backView = [[UIImageView alloc]initWithFrame:CGRectMake(0, self.photoView.frame.size.height - 60, SCREEN_WIDTH/7*3.1, 60)];
        [backView setImage:[UIImage imageNamed:@"backViewCell"]];
        [self.contentView addSubview:backView];
        
        self.countLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 5, SCREEN_HEIGHT / 18)];
        self.countLabel.backgroundColor = [UIColor colorWithRed:0. green:0. blue:0. alpha:.3];
        self.countLabel.textAlignment = YES;
        self.countLabel.font = [UIFont systemFontOfSize:23.];
        self.countLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.countLabel];
        
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 5, SCREEN_HEIGHT / 18)];
        self.label.backgroundColor = [UIColor colorWithRed:0. green:0. blue:0. alpha:.3];
        self.label.textAlignment = YES;
        self.label.font = [UIFont systemFontOfSize:15.];
        self.label.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.label];
        
        self.cnnameLabel = [[UILabel alloc]initWithFrame:CGRectMake(5, self.photoView.frame.size.height - 50, 220, 20)];
        self.cnnameLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.cnnameLabel];
        
        self.ennameLabel = [[UILabel alloc]initWithFrame:CGRectMake(5, self.photoView.frame.size.height - 30, 220, 20)];
        self.ennameLabel.font = [UIFont systemFontOfSize:13.];
        self.ennameLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.ennameLabel];
    }
    return self;
}
@end
